home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 4⁄13⁄90 / 1098-Think Pascal bug?-Apr90 < prev    next >
Encoding:
Text File  |  1990-04-16  |  1.4 KB  |  36 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    5711400                         13-April-90        05:47PDT
  4.  
  5. From:   A0158                           F & M College, H Haddon, SPT,PRA
  6.  
  7. To:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Think Pascal bug?
  10.  
  11. I have been evaluating Think Pascal 3.0 as a possible replacement for MPW in
  12. MacApp development and so far Think looks very promising.  However I did have a
  13. problem with the sample application Calc which may be due to a Think bug.
  14.  
  15. When the sample application Calc is run with Think, Calc will bomb if any
  16. non-empty cells are copied to the clipboard and then Quit is choosen.  The
  17. bomb, usually an address error, bus error, or method not found error, occurred
  18. at the following lines in the method TCellsView.WriteToScrap in UCalc.p:
  19.  
  20.    with fCalcDocument.GetCell(aCell.v, aCell.h) do
  21.         WriteToScrap(calcScrap, scrapOffset);
  22.  
  23. I'm using a Mac II with System 6.0.2.  The bomb occurred with both MultiFinder
  24. 6.0.1 and 6.1b9.  It bombed with all four of the Calc projects included with
  25. Think, although the application built with Calc.Build.π didn't bomb every time.
  26. When I eliminated the "with" statement the bombs went away:
  27.  
  28.    fCalcDocument.GetCell(aCell.v, aCell.h).WriteToScrap(calcScrap,scrapOffset);
  29.  
  30. Has anyone else run into this or similar problems?  Could this be a Think code
  31. generation bug?
  32.  
  33. Harry Haddon
  34.  
  35.  
  36.